<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="__PUBLIC__/Admin/Css/public.css" />  
    <!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.min.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
    	window.UEDITOR_HOME_URL = "__PUBLIC__/ueditor/";
        window.onload = function(){ 
        	window.UEDITOR_CONFIG.initialFrameHeight = 500;
        	window.UEDITOR_CONFIG.initialFrameWidth = 1100;        	
        	UE.getEditor('container');        	
        }    
    </script>
</head>
<body>
	<form action="<{:U('Home/Bowen/doxiugai')}>" method="POST">
		<table class="table">
			<tr>
				<th colspan="2">文章修改</th>
			</tr>
			<tr>
				<td align="right" width="10%">所属分类:</td>					
				<td>			
					<select name="cid">
						<option value="<{$boke.cid}>"><{$boke.step}></option>
						<foreach name="step" item="v">							
							<option value ="<{$v.id}>"><{$v.log}><{$v.name}></option>
						</foreach>
					</select>					
				</td>
			</tr>			
			<tr>
				<td align="right">文章属性</td>				
				<td>					
					<foreach name="attr" item="v">
						<lable style="margin-right:10px;">
							<input type="checkbox" name="aid[]" value="<{$v.id}>"
							<foreach name="boke.attr" item="value">
								<if condition="$value['id'] eq $v['id']">
								checked="checked"
								</if>
							</foreach>	
							><{$v.name}></input>
						</lable>
					</foreach>
				</td>							
			</tr>
			<tr>
				<td align="right">文章标题</td>
				<td>
					<input type="text" name="title" value="<{$boke.title}>"/>
				</td>
			</tr>
			<tr>
				<td align="right">文章摘要</td>
				<td>
					<input type="text" name="abstract" value="<{$boke.abstract}>"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<textarea name="content" id="container" ><{$boke.content}></textarea>
				</td>			
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="hidden" name="id" value="<{$boke.id}>"/>
					<input type="submit" value="确认"/>
				</td>
			</tr>			
		</table>	
	</form>
</body>
</html>